package com.web.user.member.ao;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;


import javax.servlet.http.HttpServletResponse;

import com.base.user.entity.Member;

public interface MemberAo
{
	/**
	 * ��֤
	 * @param params
	 * @return
	 */
	String validate(Map<String, Object> params);
	/**
	 * ע��
	 * @param member
	 */
	void register(Member member);
	/**
	 * ��¼
	 * @param request
	 * @param params
	 * @param response
	 * @return
	 */
	Map<String,Object> login(HttpServletRequest request, Map<String, Object> params, HttpServletResponse response);
	/**
	 * �˳�
	 * @param request
	 * @param response
	 * @param memberId
	 */
	void logOut(HttpServletRequest request, HttpServletResponse response, long memberId);
	/**
	 * ��֤�Ƿ��¼
	 * @param memberId
	 * @param request
	 * @param response
	 * @return
	 */
	String validateHashLogin(long memberId, HttpServletRequest request, HttpServletResponse response);
	/**
	 * ��ӹ�ע
	 * @param friend_id
	 * @param requst
	 */
	void addGz(long friend_id, HttpServletRequest requst);
	/**
	 * �������
	 * @param request
	 * @param friend_id
	 */
	void addFriends(HttpServletRequest request, long friend_id);
	
	/**
	 * ��������ͨ��
	 * @param request
	 * @param send_MId
	 */
	void requestPass(HttpServletRequest request, long send_MId);
}
